package com.cloudlinkscm.loms.services.base.notify.controller;

import com.cloudlinkscm.loms.framework.core.pojo.RestfulApiResponse;
import com.cloudlinkscm.loms.services.base.notify.dto.InsertAccountDto;
import com.cloudlinkscm.loms.services.base.notify.service.TenantThirdPartAccountRemoteService;
import com.cloudlinkscm.loms.services.base.notify.service.TenantAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : tac
 * @date : 2017/6/15
 */

@RestController
@RequestMapping(TenantThirdPartAccountRemoteService.PATH)
public class TenantAccountController implements TenantThirdPartAccountRemoteService {

    @Autowired
    private TenantAccountService service;


    public RestfulApiResponse<String> insertAccount(@RequestBody InsertAccountDto dto){
        return RestfulApiResponse.success("新增账号成功", service.insertAccount(dto));
    }

}
